//
//  BlurImageView.m
//  GiftItems
//
//  Created by lanou3g on 15/9/19.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "BlurImageView.h"

@implementation BlurImageView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.userInteractionEnabled = YES;
        self.image = [UIImage imageNamed:@"1220zqxjz00004.jpg"];
        [self setUpBlurView];
    }
    return self;
}
// 设置模糊视图
- (void)setUpBlurView {
    UIVisualEffectView *backVisual = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
    backVisual.frame = self.bounds;
    backVisual.alpha = 1.0;
    [self addSubview:backVisual];
}

@end
